CFLAGS += -Os -Wall -s
BIN = discovery

CFLAGS += -Wall -Os 
LIBS = -lpthread



OBJS  =  main.o 

all: $(BIN)

discovery:  $(OBJS)
	$(CC)  $(CFLAGS) $(OBJS) $(LIBS) -o  $@ 
	@echo "make $@ finished on `date`"
			
%.o:	%.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $<  $(LIBS) 

install:
	cp -a $(BIN) ../../target/usr/sbin
	
clean:
	rm -f $(BIN) $(OBJS) 

